<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>    


<head>

	
</head>
<body>

<div id="content" class="box-content">

<table class="table table-bordered table-striped" width="98%"  >
  <tr>
    <td width="100" align="center"><h3>编号</h3></td>
    <td style="padding:15px;" >${item.local_id }</td>
    <td width="100" align="center"><h3>方式</h3></td>
    <td style="padding:15px;" >${item.mode }</td>
    <td width="100" align="center"><h3>手续</h3></td>
    <td style="padding:15px;" >${item.circs }</td>
  </tr>
  <tr>
    <td align="center"><h3>类别</h3></td>
    <td style="padding:15px;" >${item.purpose }</td>
    <td align="center"><h3>规格</h3></td>
    <td style="padding:15px;" >${item.room }</td>
    <td align="center"><h3>电话</h3></td>
    <td style="padding:15px;" >${item.phone_flag }</td>
  </tr>
  <tr>
    <td rowspan="2" align="center"><h3>位置</h3>      <h3>&nbsp;</h3></td>
    <td colspan="3" rowspan="2" style="padding:15px;" >${item.address }</td>
    <td align="center"><h3>方向</h3></td>
    <td style="padding:15px;" >${item.direction }</td>
  </tr>
  <tr>
    <td align="center"><h3>装修</h3></td>
    <td style="padding:15px;" >${item.fitment }</td>
  </tr>
  <tr>
    <td align="center"><h3>楼层</h3></td>
    <td style="padding:15px;" >${item.layer }</td>
    <td align="center"><h3>面积</h3></td>
    <td style="padding:15px;" >${item.area }</td>
    <td align="center"><h3>钥匙</h3></td>
    <td style="padding:15px;" >${item.scheduled_flag }</td>
  </tr>
  <tr>
    <td align="center"><h3>价格</h3></td>
    <td style="padding:15px;" >${item.price }</td>
    <td align="center"><h3>单位</h3></td>
    <td style="padding:15px;" >${item.unit }</td>
    <td align="center"><h3>顶手费</h3></td>
    <td style="padding:15px;" >${item.fzrf }</td>
  </tr>
  <tr>
    <td align="center"><h3>总价</h3></td>
    <td colspan="3" style="padding:15px;" >${item.totalprice }&nbsp;${item.totalunit }</td>
    <td align="center"><h3><span class="AdInfo" style="display:none">单位名称</span></h3></td>
    <td style="padding:15px;" ><span class="AdInfo" style="display:none">${item.unitname }</span></td>
  </tr>
  <tr>
    <td align="center"><h3>外观</h3></td>
    <td colspan="3" style="padding:15px;" >${item.wg }</td>
    <td align="center"><h3></h3></td>
    <td style="padding:15px;" ><span class="AdInfo" style="display:none"><a href="<c:url value='/read/zjlist/showZjlistInfo?zid=${item.z_id }'/>" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-search'">委托单位详细信息</a></span></td>
  </tr>
  <tr>
    <td align="center"><h3>其他</h3></td>
    <td colspan="3" style="padding:15px;" >${item.qt }</td>
    <td align="center"><h3>&nbsp;</h3></td>
    <td style="padding:15px;" >&nbsp;</td>
  </tr>
  <tr>
    <td align="center"><h3>备注</h3></td>
    <td colspan="3" style="padding:15px;" >${item.memo }</td>
    <td align="center"><h3>自编号</h3></td>
    <td style="padding:15px;" >${item.selfcode }</td>
  </tr>
  <tr>
    <td align="center"><h3>区域</h3></td>
    <td colspan="3" style="padding:15px;" >${item.map }&nbsp;&nbsp;<a href="<c:url value='/read/esinfo/showmap?qyno=${item.map }'/>" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-help'">区域位置对应</a></td>
    
    <td align="center"><h3>登记日期</h3></td>
    <td style="padding:15px;" >${item.editdate }</td>
  </tr>
</table>			
		
</div>

<div id="mm" class="easyui-menu" style="width:120px;">
<div onclick="javascript:postproofr('${item.local_id }','报称已租')">报称已租</div>
<div onclick="javascript:postproofr('${item.local_id }','报称已售')">报称已售</div>
<div onclick="javascript:postproofr('${item.local_id }','报称已定')">报称已定</div>
<div onclick="javascript:postproofr('${item.local_id }','报称在租')">报称在租</div>
<div onclick="javascript:postproofr('${item.local_id }','多次约无')">多次约无</div>
<div onclick="javascript:postproofr('${item.local_id }','提醒已租')">提醒已租</div>
<div onclick="javascript:postproofr('${item.local_id }','提醒已售')">提醒已售</div>
<div onclick="javascript:postproofr('${item.local_id }','提醒重新')">提醒重新</div>
<div class="menu-sep"></div>
<div onclick="javascript:postcancelproofr('${item.local_id }')">取消操作</div>
		
</div>		

<script>


var showflag = false;
$(document).keypress(function(e) {
    if (e.which == 32 || e.which == 13 ) {
    	if (showflag == false){
    	  $('.AdInfo').show();
    	  showflag = true;
    	}else{
    		$('.AdInfo').hide();
    		showflag = false;
    	}
    };
})

function postproofr(lid,text){
	$.ajax({
		url:'<c:url value="/read/esinfo/postProofr"/>',
		data: {id:lid, content:text},
		type:'post',
		success:function(){
			$.messager.show({
				title:'提交成功',
				msg:'<pre>您的校对信息已提交。</pre>'
			});
		}
	});
}


function postcancelproofr(lid){
	$.ajax({
		url:'<c:url value="/read/esinfo/postCancelproofr"/>',
		data: {id:lid},
		type:'post',
		success:function(){
			$.messager.show({
				title:'提交成功',
				msg:'<pre>您的校对信息已取消。</pre>'
			});
		}
	});
}

$(function(){
	<c:if test="${rm != 'norm'}">
			$(document).bind('contextmenu',function(e){
				e.preventDefault();
				$('#mm').menu('show', {
					left: e.pageX,
					top: e.pageY
				});
			});
		</c:if>	
		
		var twice = ${cfgs["fontsizetwice"]};
		var fontsize = 12;
		$("*").css("font-size", fontsize*twice+ "px");
		
		});
</script>	


	
</body>
